<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            display: none;
        }
        div:target{
            background: green;
            display: block;
        }
    </style>
</head>
<body>
    <a href="#p1">坤坤</a>
    <a href="#p2">王源</a>
    <div id="p1">
        坤坤是一个男演员
    </div>
    <div id="p2">
        王源是一个唱歌的
    </div>
</body>
</html>